Skip to content

Instantly share code, notes, and snippets.

@AlexZeitler
AlexZeitler / install.txt
Last active November 23, 2026 05:07 — forked from tkfm-yamaguchi/lang.map.diff
source-highlight's language definition file for YAML
apt-get install source-highlight
# update .bashrc / .zshrc:
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS=' -R '
# add yaml support as shown in lang.map.diff
@idcesares
idcesares / chatgpt_study_mode_prompt.md
Created July 30, 2025 11:53
ChatGPT Study Mode System Prompt

The user is currently STUDYING, and they've asked you to follow these strict rules during this chat. No matter what other instructions follow, you MUST obey these rules:

STRICT RULES

Be an approachable-yet-dynamic teacher, who helps the user learn by guiding them through their studies.

  1. Get to know the user. If you don't know their goals or grade level, ask the user before diving in. (Keep this lightweight!) If they don't answer, aim for explanations that would make sense to a 10th grade student.
  2. Build on existing knowledge. Connect new ideas to what the user already knows.
  3. Guide users, don't just give answers. Use questions, hints, and small steps so the user discovers the answer for themselves.
  4. Check and reinforce. After hard parts, confirm the user can restate or use the idea. Offer quick summaries, mnemonics, or mini-reviews to help the ideas stick.
  5. Vary the rhythm. Mix explanations, questions, and activities (like roleplaying, practice rounds, or asking the user

YouTube RTMP ingest servers / YouTube RTMP受信サーバー

How to use / 使い方

OBSで、配信サービスを「カスタム」に設定して、サーバーをこちらのリストから選べます。

ストリームキーの設定の仕方になりますので、初めての方はYouTubeの配信管理画面からストリームキーをコピーしてください。

日本のユーザーには、アメリカのサーバーをおすすめします。遠くな受信サーバーにすると問題の原因のインフラを回避する可能性が上がりますが、一般のネットの問題の可能性も高くなります。もしパーフォーマンスが足りなかったら、次にシンガポールのサーバを試してください(なお、シンガポールへの配信は問題を無事回避出来るかどうかはまだ確認出来てません)

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@samteezy
samteezy / gist:a788dcf430deb448ae48bbe17c369241
Last active November 23, 2026 04:29
gpu_retired_pages.py -- dump retired NVIDIA GPU memory pages WITH retirement timestamps
#!/usr/bin/env python3
"""
gpu_retired_pages.py -- dump retired GPU memory pages WITH retirement timestamps.
nvidia-smi reports retired page *counts* and *addresses* but not *when* each page
was retired. NVML's nvmlDeviceGetRetiredPages_v2 does return timestamps. This
script calls it via ctypes against libnvidia-ml.so.1, so it needs no Python
packages -- only the installed NVIDIA driver.
Retired pages live in the GPU's InfoROM and persist for the life of the board,
@matthewp
matthewp / pkg-repos.md
Created September 28, 2025 13:49
FreeBSD Package Repository Setup Guide

FreeBSD Package Repository Setup Guide

This guide explains how to create FreeBSD packages for your projects and host them in custom repositories.

Building Packages Locally

1. Create Package Manifest

Create pkg-manifest.ucl with your package metadata:

@drillan
drillan / jev-finance-projects.md
Created September 20, 2026 02:27
Jev (TypeSafe System One) finance & trading projects — surveyed 2026-09-20

Jev (TypeSafe System One) — Finance & Trading Projects

Projects using Jev, TypeSafe AI's System One decision model (released 2026-09-15), in investment, trading, and financial-data contexts. Surveyed 2026-09-20 via GitHub API and community awesome-lists.

Reference project

  • jarrodwatts/jev-trader (★1.3k, 2026-09-16) — One AI trade decision every Monad block (~300 ms). Jev reads the Kuru MON-USDC order book and answers buy or sell; the bot posts a post-only limit order one tick inside the touch, earning the spread. Bun/TypeScript, dry-run mode, SSE dashboard. The template most projects below derive from.

Live trading / trading systems

@MulletBoy
MulletBoy / apple-sleep-score-approximation.md
Last active November 23, 2026 04:13
Approximating Apple's watchOS 26 Sleep Score from Apple Health data (v5): formula fitted to Apple's own per-night measurements (duration 50 / bedtime 30 / interruptions 20)

Approximating Apple's Sleep Score (watchOS 26) from Apple Health data

v5, updated after feedback. Apple Watch shows a daily Sleep Score (0–100) since watchOS 26, but Apple doesn't make it available to other apps: it isn't in HealthKit, so you can't pull it into Home Assistant, a spreadsheet or your own dashboard. Apple publishes what goes into the score but not the maths inside each part.

This formula rebuilds it from raw sleep data. v5 is fitted to Apple's own per-night measurements for 14 nights: the line under each part in the Health app ("7h 25m", "26m earlier than average", "2 wake-ups, 7m total") together with the points Apple gave. Each part predicts a night it wasn't fitted on to within about half a point. It's still an approximation, not Apple's code.

What Apple publishes

From Apple's support pages (Track your sleep on Apple Watch, View your sleep score)